<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/4
 * Time: 15:01
 */


header('Content-type: text/json;charset=utf-8');
$_POST ? $data = $_POST : $data = $_GET;
require_once "config.php";
require_once "MyPDO.class.php";

$db = MyPDO::getInstance($host, $user, $pass, $dbName, 'utf8');

$shop = $data['shop'];

$info = $db->query("cooperation_shop", "`shop` = '$shop' OR `taobao` = '$shop' ", "Row");

if ($info['id']) {

} else {
    echo "error";
}